Repository navigation
docs(skills): data and automation skills teach three data-model publish checks - #37707
Conversation
…sh checks Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: First round, PR #37707 for card #37529. Read: the card and its three comments, the PR body and its six-file list, the net diff against ① Derived judgments
② Semver levelOne changeset, ③ Boundary flags
④ Design judgment
N1 (nit) — "A child with neither … is refused" reads as unconditional. The code refuses that arm only when
The removed clause does not change what item 2 teaches. The item stays advice with its reason under "Approval Best Practices"; the Node Config row above it still documents N2 (nit) — "drawn as a body table" uses a spec-internal term the published skills never define. The data skill calls the same thing a full-width table in the record's details (
Case 12 holds. The added prompt sentence makes the missing foreign key part of the task, and an answer that leaves N3 (nit) — case 12's new token assumes the parent's machine name and the literal form. The prompt names S1 (should-fix) — data case 29 does not grade the rule it was added for.
No must-fix. S1 is open on this head and I read its fix as a delta. N1 to N3 may ride that same commit, which the delta then covers, or stand as accepted deviations. Implemented-by: VERDICT: PASS |
Data case 29 requires the refusal's rule id; case 12's prompt names the parent object. The roll-up refusal sentence says it applies only when relationshipField is omitted; the approval lock sentence names the record-details table the data skill teaches. Paid down in the same files. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: DELTA review from
① Derived judgments
② Semver levelOne changeset, ③ Boundary flags
④ Design judgment
Best practice 2.
Best practice 1, the first cut. "to mirror status onto the row" is gone from the item. The fact is still taught twice in the file: the The
Neither cut changes what the skill teaches about the lock's reach: the record and its No must-fix, no should-fix. N4 and N5 are nits and end the round; a fix to either moves the head and this record would no longer cover it. Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head 4695c42 · card #37529 · area s2-ai · 2026-11-26T22:40ZL1 checklist
Tier: H. Landing: hand-off to the approver by the next stroke; ⛔ the seat does not merge. |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Tier H hand-off · 2026-11-26T22:41Z · head 4695c42 · approver 维护者速读
|
Requested by Sales · project thread
Fixes #37529
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
One sentence per rule, each worded from the code on
mainatfbcfdfbb58(the lint rules PR #37513 landed), not from the card's paraphrase:skills/objectstack-data/rules/relationships.md(Roll-up Summaries): a roll-up is refused at publish whenrelationshipFieldis omitted and the child has nolookup/master_detailreferencing the parent, or whenrelationshipFieldnames no field of the child (rollup/child-without-parent-reference). Both arms are in the rule (summaryRollupFindings, severityerror).skills/objectstack-data/rules/field-types.md(Relational): onlylookup,master_detail,userandtreereadreference; on any other type butsummary, publish refuses it (field/reference-on-non-reference-type, severityerror). The card sayssummaryreads it; the code says the four types read it andsummaryis exempt from the refusal, so the sentence says that.skills/objectstack-automation/references/state-machines-and-approvals.md(Approval Best Practices, item 2):lockRecordlocks the record and itsmaster_detailchild rows only; alookupchild shown in the record's details (relatedList: 'primary', or a parent field group, as the data skill names it) stays editable, reported as the warningapproval-detail-editable-while-pending. It is taught as a warning, not a refusal.project, named in the prompt) and expectsreference: 'project'; a new data case 29 asks aboutreferenceon atextfield and requires the rule idfield/reference-on-non-reference-type; automation case 3 (budget approval) now carries a lookup body table and expectsmaster_detail.@objectstack/skillspatch changeset.Token ratchet: no ceiling moved
Every addition is paid for by shorter wording in the same file (
node scripts/check-skills-token-ratchet.mjs, exit 0 at4695c42cc6).skills/objectstack-data/rules/relationships.mdskills/objectstack-data/rules/field-types.mdskills/objectstack-automation/references/state-machines-and-approvals.mdskills/objectstack-data/evals/objects-fields-relationships.json(not ratcheted)skills/objectstack-automation/evals/flows-triggers-approvals.json(not ratcheted)Whole bundle: ratcheted (authored) 199619 to 199632 tokens against a 204473 total ceiling; shipped tree 299752 to 300145 tokens; all
SKILL.mdfiles together 4961 lines before and after; wholeskills/tree 23255 to 23276 lines.Tests
node ui/scripts/check-skill-eval-tokens.mjsexits 0 but walksskills/objectuionly, so it says nothing about these fixtures (contract review 7204561928). On4695c42cc6everymust_containtoken of each data case is in its own reference answer and nomust_not_containtoken is (29 cases, 0 violations).pnpm --filter @objectstack/spec run check:skill-examples: exit 0, "352 prose examples type-check across 3 surface(s)".node ui/scripts/check-skill-examples.mjs: exit 0, "Every marked skill example holds up against the built types."The two example gates were read at
ad8cf055c2; the delta at4695c42cc6changes no code example. At4695c42cc6: token ratchet exit 0,pnpm check:skill-linksexit 0,check:skill-identifier-livenessexit 0,check:skill-frame-syncexit 0;check:doc-authoringNOT MEASURED locally (exit 3, notypescriptin the worktree), CI's.Acceptance notes
summary" becomes "Viasummary" (two table cells); the recompute sentence drops "so it's consistent". field-types.md: nine table cells and two prose phrases lose filler words ("built-in format validation" to "format validated", "Video files" to "Video", and the like). state-machines-and-approvals.md: a code comment, the send-back opening sentence and two lead-ins are shorter.relationshipFieldis omitted; the approval sentence uses the data skill's words for the table; data case 29 requires the rule id; case 12's prompt namesproject. Paid down in the same files: best practice 1 is shorter, and thelockRecordconfig row reads "Lock the record while pending" (best practice 2 says what the lock covers). state-machines-and-approvals.md now sits at zero headroom, relationships.md at 2.node scripts/pm/overlap-check.mjsreports it merges cleanly against this branch (exit 0); the claim on the card cleared it.referencerule fit no existing case and got a new one.Verification
Derived gates at ad8cf05: 49 derived, 48 run, 1 NOT MEASURED
node scripts/pm/dispatch-gates.mjs --ran: "49 derived famil(ies) accounted for — 48 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)", exit 0.pnpm check:dual-build-cjs-loads, exit 3, reason: it reads every package's built output and only the closures the skill gates need were built here. CI builds the whole tree.node scripts/check-skills-token-ratchet.mjsand its--self-test,pnpm check:skill-links,pnpm check:skill-identifier-liveness,pnpm check:skill-compatibility,pnpm check:skill-frame-sync,pnpm --filter @objectstack/spec run check:skill-refs,pnpm --filter @objectstack/spec run check:skill-served-sections,pnpm --filter @objectstack/lint run check:doc-formula-expressions,pnpm check:doc-authoring,pnpm check:nul-bytes,pnpm check:published-files,node scripts/check-empty-changeset.mjs --base origin/main,node scripts/check-changeset-no-major.mjs --base origin/main,node scripts/check-adr-0087-registration.mjs --base origin/main.Read first, by risk:
skills/objectstack-data/rules/field-types.md, the new sentence under the Relational table: it sayssummaryis exempt, which differs from the card's wording.skills/objectstack-automation/references/state-machines-and-approvals.md, best practice 2: the rewritten item and the dropped clause.skills/objectstack-data/evals/objects-fields-relationships.json, case 12: an existing prompt gained a sentence.Two-minute check: run
node scripts/check-skills-token-ratchet.mjsand expect exit 0 with the three files at headroom 2, 1 and 0.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96